package com.qf.controller;

import com.qf.service.FangKe;
import com.qf.service.impl.FangKeImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class RentHouseContreller {
    public static void main(String[] args) {
//        FangKe fangKe = new FangKeImpl();
//        fangKe.zufang();

        ApplicationContext context = new ClassPathXmlApplicationContext("spring-context.xml");
        FangKe fangKe = (FangKe) context.getBean("fangKe");
        fangKe.zufang();

    }
}
